package model;

import interfaces.LagerInterface;
import interfaces.Lager_VareInterface;
import interfaces.PostnummerInterface;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;

/**
 *
 * @author Maja
 */
public class Lager extends UnicastRemoteObject implements LagerInterface {

    private int id;
    private Postnummer postnummer;
    private String adresse;
    private ArrayList<Lager_VareInterface> lagerVarer;

    public Lager(int id, Postnummer postnummer, String adresse) throws RemoteException {
        this.id = id;
        this.postnummer = postnummer;
        this.adresse = adresse;
        this.lagerVarer = new ArrayList<>();
    }

    @Override
    public int getId() throws RemoteException{
        return id;
    }

    @Override
    public PostnummerInterface getPostnummer() throws RemoteException {
        return postnummer;
    }

    @Override
    public String getAdresse() throws RemoteException {
        return adresse;
    }

    @Override
    public ArrayList<Lager_VareInterface> getLagerVarer() throws RemoteException {
        return lagerVarer;
    }
    

}
